<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/website/common/base.jsp"%>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>信息提示</title>
<%@ include file="/website/common/common.jsp"%>
<link href="${webctx }/css/payment.css" rel="stylesheet" type="text/css" />

</head>

<body>
<%if(WebSession.checkLoginStatus(session)){ %>
<div id="wrap-site">
	<div class="site-nav inner">
		<div class="fl">欢迎来到${webname }！</div>
		<ul class="site-nav-r fr">
			<li><a href="javascript:showusercenter();"><%=WebSession.getWbUser(session).getTitle() %></a></li>
			<li><a href="javascript:showusercenter();">会员中心</a></li>
			<li><a href="javascript:showmyorders();">我的订单</a></li>
			<li><a href="${ctx }/order/oftenList">快捷下单</a></li>
			<li><a href="javascript:loginout();" class="curColor">退出</a></li>
		</ul>
	</div>
</div>
<%}else{%>
<div id="wrap-site">
	<div class="site-nav inner">
		<div class="fl">欢迎来到${webname }！</div>
		<ul class="site-nav-r fr">
			<li><a href="javascript:showloginpage();">登录</a></li>
			<li><a href="javascript:showregisterpage();">注册</a></li>
			<li><a href="javascript:showmyorders();">我的订单</a></li>
			<li><a href="${ctx }/order/oftenList">快捷下单</a></li>
			
		</ul>
	</div>
</div>
<%} %>
<script>
function showloginpage(tourl){
	var curUrl="";
	if(tourl)curUrl=tourl;
	else curUrl=window.location.href;
	sessionStorage.setItem("_curUrl_",curUrl);
	window.location.href=loginUrl;
}
function showregisterpage(){
	window.location.href=server+"/user/showregister";
}
function showusercenter(){
	if($w.checkLogin(true,server+"/user/home")){
		window.location.href=server+"/user/home";
	}
}

function showmyorders(){
	window.location.href=server+"/order/orderlist";
}
function loginout(){
	$w.clearLoginUser();
	$w.httpRequest({
		 url:server+"/user/loginout",
		 data:{},
		 ok:function(ret){
			 window.location.href=ctx+"/index/home";
		 }
	 })
}
</script>
<div id="wrap-head">
	<div class="head inner clearfix">
        <div class="logo"><a href="${ctx }/website/index.jsp"><img src="${webctx }/images/logo.png" /></a></div>
        
    </div>	
</div>
<div id="Warp_pay">
	<div class="inner">
    	
    	<div class="pay-txt">

        	<span style="width:140px; height:140px; position:absolute; top:130px; left:230px;"><img src="${ctx }/website/images/msgicon.png" style="width:130px;"></span> 
        	<div class="txt-bd" style="padding-left:505px;">
            	<div class="txt-th" style="color:#ff6767">您访问的页面出现异常!</div>
				<div class="sec-back"><span id="sec">9</span> 秒后自动返回首页</div>
                <div class="txt-ft clearfix mt-30">
                    <a href="${ctx }/website/index.jsp" class="det-btn">返回首页</a>
                </div>
            </div>	           
        </div>
        
        <div class="com-box inner mt-10">
    	
    </div>
        
    </div>
</div>

<%@ include file="/website/common/foot_min.jsp"%>

<script>
	//倒计时
    var t = setInterval(function () {
        var txt = $("#sec").text();
		if(txt > 1){
		    txt--;
            $("#sec").text(txt);
		} else {
		    clearInterval(t);
            window.location.href = "${ctx }/website/index.jsp";
		}
    },1000)

</script>
</body>
</html>